home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / rcs55.zip / MAKEFILE < prev    next >
Text File  |  1991-09-15  |  3KB  |  110 lines

  1. # $Id: Makefile,v 5.8 1990/12/13 06:54:06 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. #   Copyright 1990 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 1, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # MAKEFILE adapted for MSDOS and Borland C++
  23. # Stu Phillips, August 1991
  24.  
  25. .AUTODEPEND
  26.  
  27. # Tool definitions
  28.  
  29. CC = bcc +BCC.CFG
  30. AS = tasm
  31. LD = tlink
  32. MODEL = -ms
  33.  
  34. # Paths for RCS files
  35.  
  36. .PATH.c%v = ./rcs
  37. .PATH.h%v = ./rcs
  38.  
  39. # Rules to create files from RCS database
  40.  
  41. .c%v.c:
  42.     co {$&.c }
  43.  
  44. .h%v.h:
  45.     co {$&.h }
  46.  
  47. .c.obj:
  48.     $(CC) -c {$&.c }
  49.  
  50.  
  51. # binary commands
  52. RCSCOMMANDS   =   ci.exe ident.exe rcs.exe rcsdiff.exe rcsmerge.exe \
  53.                   rlog.exe co.exe
  54.  
  55. all : bcc.cfg $(RCSCOMMANDS) rcs.lib 
  56.  
  57. RCSLIB = rcslex.obj rcssyn.obj rcsgen.obj rcsedit.obj rcskeys.obj \
  58.          rcsmap.obj rcsrev.obj rcsutil.obj rcsfnms.obj partime.obj \
  59.          maketime.obj rcskeep.obj rcsfcmp.obj getcwd.obj unlink.obj
  60.  
  61. rcs.lib: bcc.cfg $(RCSLIB)
  62.     rm -f rcs.lib
  63.     tlib /c rcs.lib @rcs.tl
  64.  
  65. ci.exe : bcc.cfg ci.obj rcs.lib
  66.     $(CC) -eci ci.obj rcs.lib
  67.  
  68. co.exe : bcc.cfg co.obj rcs.lib
  69.     $(CC) -eco co.obj rcs.lib
  70.  
  71. ident.exe : bcc.cfg ident.obj rcs.lib
  72.     $(CC) -eident ident.obj rcs.lib
  73.  
  74. rlog.exe : bcc.cfg rlog.obj rcs.lib
  75.     $(CC) -erlog rlog.obj rcs.lib
  76.  
  77. rcs.exe : bcc.cfg rcs.obj rcs.lib
  78.     $(CC) -ercs rcs.obj rcs.lib
  79.     
  80. rcsdiff.exe : bcc.cfg rcsdiff.obj rcs.lib 
  81.     $(CC) -ercsdiff rcsdiff.obj rcs.lib
  82.  
  83. rcsmerge.exe : bcc.cfg rcsmerge.obj rcs.lib
  84.     $(CC) -ercsmerge rcsmerge.obj rcs.lib
  85.  
  86. SOURCE=    ci.c co.c ident.c maketime.c partime.c rcs.c \
  87.     rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  88.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  89.     rcsutil.c rlog.c getcwd.c unlink.c
  90. OBJECT=    ci.obj co.obj ident.obj maketime.obj partime.obj rcs.obj \
  91.     rcsdiff.obj rcsedit.obj rcsfcmp.obj rcsfnms.obj rcsgen.obj \
  92.     rcskeep.obj rcskeys.obj rcslex.obj rcsmap.obj rcsmerge.obj rcsrev.obj \
  93.     rcssyn.obj rcsutil.obj rlog.obj getcwd.c unlink.c
  94.  
  95. $(OBJECT) : bcc.cfg conf.h rcsbase.h
  96.  
  97. #        *Compiler Configuration File*
  98. bcc.cfg: makefile
  99.   cp &&|
  100. -ms
  101. -O
  102. -Z
  103. -f-
  104. -v
  105. -y
  106. -ID:\BORLANDC\INCLUDE
  107. -LD:\BORLANDC\LIB
  108. -P.C
  109. | bcc.cfg
  110.